home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
pascal
/
tegl6b.zip
/
INTROPAK.EXE
/
lha
/
GRTEST01.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-04-06
|
1KB
|
46 lines
{-----------------------------------------------------------------------------}
{ TEGL Windows ToolKit II }
{ Copyright (C) 1990, TEGL Systems Corporation }
{ All Rights Reserved. }
{-----------------------------------------------------------------------------}
{ }
{ This program demonstrates the automatic loading of TEGL Drivers located }
{ anywhere on the DOS path as well as the direct drop-in replacement of the }
{ Borland's Graph unit. You can compile using Borland's Graph unit simply by }
{ changing TGraph to Graph in the uses statement. }
{ }
{-----------------------------------------------------------------------------}
{ $define BGI}
uses
crt,
{$ifdef BGI}
graph;
{$else}
tgraph;
{$endif}
var gd,gm : integer;
ch : char;
begin
gd := ega;
gm := egahi;
initgraph(gd,gm,'..');
if gd<0 then
begin
writeln('Error registering driver:',GraphErrorMsg(GraphResult));
halt(1);
end;
setcolor(blue);
rectangle(0,0,getmaxx,getmaxy);
while keypressed do ch:=readkey;
while not keypressed do;
while keypressed do ch:=readkey;
closegraph;
end.